package service.impl;

import dao.UserDao;
import dao.impl.UserDaoImpl;
import entity.User;
import service.UserService;

public class UserServiceImpl implements UserService {

    UserDao userDao=new UserDaoImpl();


    @Override
    public User login(String username, String password) {
       return userDao.getUserByNameAndPwd(username, password);
    }

    @Override
    public int updateUserImage(User user) {
        return userDao.updateUserImage(user);
    }
}
